
//const store = createStore(rootReducer)
function applyMiddleware(middleware1,middleware2){
    return function(createStore){
        return function(rootReducer){
            return createStore(rootReducer)
        }
    }
}
const store = applyMiddleware(thunk,logger)(createStore)(rootReducer)